package com.study.blog.service;

import com.study.blog.vo.Result;
import com.study.blog.vo.parms.ArticleParam;
import com.study.blog.vo.parms.PageParams;

/**
 * @author 1
 * @data 2022/2/15
 */
public interface ArticleService {

    /**
     * 分页查询文章列表
     * @param pageParams
     * @return
     */
    Result listArticle(PageParams pageParams);

    Result hotArticle(int limit);

    Result newArticle(int limit);

    Result listArchives();

    Result findArticleById(Long articleId);

    Result publish(ArticleParam articleParam);
}
